package com.ibeeking.found.content.c.rest.service;

import com.ibeeking.found.content.service.common.query.BroadcastPageQuery;
import com.ibeeking.found.content.service.common.query.BroadcastQuery;
import com.ibeeking.found.content.service.common.vo.BroadcastCount;
import com.ibeeking.found.content.service.common.vo.BroadcastCouponVO;
import com.ibeeking.found.content.service.common.vo.BroadcastGoodsVO;
import com.ibeeking.found.content.service.common.vo.BroadcastVO;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;

/**
 * IBroadcastService
 *
 * @Author ibeeking
 * @Date 2022-02-18 14:11
 */
public interface IBroadcastService {

    /***
     * 查询列表
     */
    List<BroadcastVO> list(BroadcastQuery broadcastQuery);

    /***
     * 查询上架到直播间的商品列表
     */
    List<BroadcastGoodsVO> listOnsaledGoods(BroadcastQuery broadcastQuery);
    /***
     * 查询上架到直播间的优惠券列表
     */
    List<BroadcastCouponVO> listOnsaledCoupon(BroadcastQuery broadcastQuery);

    /***
     * 分页查询
     */
    Page<BroadcastVO> pageList(BroadcastPageQuery broadcastPageQuery);

    /***
     * 通过id查询
     */
    BroadcastVO view(Long id);

    /**
     * 统计各分组文章数量
     *
     * @param groupIds
     * @return
     */
    List<BroadcastCount> countByGroup(List<Long> groupIds);

}
